/*
 * DialogPanel.java
 *
 * Created on March 22, 2001, 3:09 PM
 */

package org.medbeans.modules.actions;

/*import org.openide.TopManager;
import org.openide.NotifyDescriptor;
import org.openide.util.HelpCtx;
import org.openide.util.NbBundle;*/
/**
 *
 * @author  oye
 * @version 
 */
public class DialogPanel extends javax.swing.JPanel {

    /** Creates new form DialogPanel */
    public DialogPanel() {
        initComponents ();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the FormEditor.
     */
    private void initComponents() {//GEN-BEGIN:initComponents
        jLabel1 = new javax.swing.JLabel();
        jTextField1 = new javax.swing.JTextField();
        setLayout(new java.awt.GridLayout(2, 1));
        setPreferredSize(new java.awt.Dimension(250, 150));
        setBorder(new javax.swing.border.TitledBorder("Dialog"));
        setMinimumSize(new java.awt.Dimension(250, 150));
        
        jLabel1.setText("Please Enter A Name");
        
        add(jLabel1);
        
        
        jTextField1.setText("Name");
        jTextField1.addInputMethodListener(new java.awt.event.InputMethodListener() {
            public void inputMethodTextChanged(java.awt.event.InputMethodEvent evt) {
                jTextField1InputMethodTextChanged(evt);
            }
            public void caretPositionChanged(java.awt.event.InputMethodEvent evt) {
                
            }
        }
        );
        
        add(jTextField1);
        
    }//GEN-END:initComponents

  private void jTextField1InputMethodTextChanged(java.awt.event.InputMethodEvent evt) {//GEN-FIRST:event_jTextField1InputMethodTextChanged
// Add your handling code here:
//    TopManager.getDefault ().notify(new NotifyDescriptor.Message (jTextField1.getText()));
  }//GEN-LAST:event_jTextField1InputMethodTextChanged

 public void requestFocus () { //set focus for one components (myField in this case) 
   jTextField1.requestFocus(); 
 } 

 public javax.swing.JTextField getTextField(){ return jTextField1; }
 // Variables declaration - do not modify//GEN-BEGIN:variables
 private javax.swing.JLabel jLabel1;
 private javax.swing.JTextField jTextField1;
 // End of variables declaration//GEN-END:variables

}
